package com.zyx.xunyilu.config.jwt;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * @ClassName: JWTToken
 * @author: zyx
 * @E-mail: 1377631190@qq.com
 * @DATE: 2019/7/27 14:13
 */
@Data
@AllArgsConstructor
public class JWTToken implements AuthenticationToken {

    private String token;

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
